package com.geovis.emergency.spd.biz.pc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.geovis.emergency.spd.entity.pc.entity.PcCheckIn;
import com.geovis.emergency.spd.entity.pc.pojo.dto.PcCheckInSaveDTO;

import java.util.Date;

/**
 * <p>
 * 应急预案模块-签到表 服务类
 * </p>
 *
 * @author 曾德实
 * @since 2022-04-30
 */
public interface IPcCheckInService extends IService<PcCheckIn> {

    /**
     * 签到
     *
     * @param dto
     */
    void signIn(PcCheckInSaveDTO dto);


    /**
     * 查询用户某天的打卡记录(获取一条即可)
     * @param currentUserId 用户id
     * @param date 时间
     * @return
     */
    PcCheckIn getUserDaySignInfo(String currentUserId, Date date);
}
